<?php

if(stristr($_SERVER['PHP_SELF'],".inc.php")) { 
	header("Location:index.php"); 
	exit; 
}

if($_GET['tag']) { 
	$tagpart	= urldecode($_GET['tag']); 
	$tagguess	= suggest_tag($tagpart); 
	if(is_array($tagguess)) { 
		foreach($tagguess as $k=>$v) { 
			$s .= "<li><a href=\"javascript:placeTag('".intval($_GET['node'])."','".$v."')\">".$v."</a></li>\n"; 
		}
		echo $s;
	} else { 
		die(); 
	}
} else { 
	die(); 
}

?>